package me.acomma.groot.infrastructure;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class Pagination<T> {
    int pageNumber = 1;

    int pageSize = 10;

    long total = 0;

    List<T> content = new ArrayList<>();

    public Pagination() {

    }

    public Pagination(int pageNumber, int pageSize, long total, List<T> content) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
        this.total = total;
        this.content = content;
    }
}
